import Layout from "@/layout";

const tplusRouter = {
  path: "/tplus/order",
  component: Layout,
  redirect: "noRedirect",
  name: "tplus",
  hidden: true,
  alwaysShow: true,
  meta: {
    title: "用友T+",
    abbre: "用友",
    icon: "left_menu_bulk",
    navigation: "/tplus",
    id: "407"
  },
  children: [
    {
      path: "/tplus/order",
      component: () => import("@/views/tplus/tplus_order"),
      name: "tplus_order",
      hidden: false,
      meta: {
        title: "同步订单",
        noCache: true,
        navigation: "/tplus/order",
        icon: "menu_big_data"
      }
    },
    {
      path: "/tplus/returnorder",
      component: () => import("@/views/tplus/tplus_return_order"),
      name: "tplus_return_order",
      hidden: false,
      meta: {
        title: "同步退货单",
        noCache: true,
        navigation: "/tplus/returnorder",
        icon: "menu_big_data"
      }
    },
    {
      path: "/tplus/category",
      component: () => import("@/views/tplus/tplus_category"),
      name: "tplus_category",
      hidden: false,
      meta: {
        title: "同步分类",
        noCache: true,
        navigation: "/tplus/category",
        icon: "menu_big_data"
      }
    },
    {
      path: "/tplus/goods",
      component: () => import("@/views/tplus/tplus_goods"),
      name: "tplus_goods",
      hidden: false,
      meta: {
        title: "同步商品",
        noCache: true,
        navigation: "/tplus/goods",
        icon: "menu_big_data"
      }
    },
    {
      path: "/tplus/member",
      component: () => import("@/views/tplus/tplus_member"),
      name: "tplus_member",
      hidden: false,
      meta: {
        title: "同步商户",
        noCache: true,
        navigation: "/tplus/member",
        icon: "menu_big_data"
      }
    },
    {
      path: "/tplus/supplier",
      component: () => import("@/views/tplus/tplus_supplier"),
      name: "tplus_supplier",
      hidden: false,
      meta: {
        title: "同步供应商",
        noCache: true,
        navigation: "/tplus/supplier",
        icon: "menu_big_data"
      }
    },
    {
      path: "/tplus/buyer",
      component: () => import("@/views/tplus/tplus_buyer"),
      name: "tplus_buyer",
      hidden: false,
      meta: {
        title: "同步采购员",
        noCache: true,
        navigation: "/tplus/buyer",
        icon: "menu_big_data"
      }
    },
    {
      path: "/tplus/purchase",
      component: () => import("@/views/tplus/tplus_purchase"),
      name: "tplus_purchase",
      hidden: false,
      meta: {
        title: "同步采购单",
        noCache: true,
        navigation: "/tplus/purchase",
        icon: "menu_big_data"
      }
    },
    {
      path: "/tplus/purchasereturn",
      component: () => import("@/views/tplus/tplus_purchase_return"),
      name: "tplus_purchase_return",
      hidden: false,
      meta: {
        title: "同步采购退货",
        noCache: true,
        navigation: "/tplus/purchasereturn",
        icon: "menu_big_data"
      }
    },
    {
      path: "/tplus/offline",
      component: () => import("@/views/tplus/tplus_offline_settle"),
      name: "tplus_offline",
      hidden: false,
      meta: {
        title: "同步货到付款",
        noCache: true,
        navigation: "/tplus/offline",
        icon: "menu_big_data"
      }
    },
    {
      path: "/tplus/online",
      component: () => import("@/views/tplus/tplus_online_settle"),
      name: "tplus_online",
      hidden: false,
      meta: {
        title: "同步在线收款",
        noCache: true,
        navigation: "/tplus/online",
        icon: "menu_big_data"
      }
    },
    {
      path: "/tplus/advice",
      component: () => import("@/views/tplus/tplus_advice_settle"),
      name: "tplus_advice",
      hidden: false,
      meta: {
        title: "同步采购结算",
        noCache: true,
        navigation: "/tplus/advice",
        icon: "menu_big_data"
      }
    }
  ]
};

export default tplusRouter;
